package com.cyf.util;

/**
 * 微信支付配置
 * Created by cage on 2017/2/22.
 */
//@ConfigurationProperties(prefix = "wechat", locations = "classpath:pay.properties")
public class WxpayConfig {
    /**
     * 用户的id
     **/
    public static final String APP_ID = "wxdab393f507469392";
    /**
     * 身份密钥
     **/
    public static final String APP_SECRET = "69fd6020bda28742e066bf63545b40b4";

    /**
     * 微信公众号Appid
     **/
    public static final String WECHAT_APP_ID = "wx832756d16af60c8c";

    /**
     * 微信公众号 秘钥
     */
    public static final String WECHAT_APP_SECRET = "7871d3bcd6b049f5b86024be117fb1b2";

    /**
     * API密钥
     **/
    public static final String API_SECRET = "cheyifuyitingbao72hd76h37dh762h3";
    /**
     * 商户id
     **/
    public static final String MCH_ID = "1443485402";
    /**
     * 统一下单地址
     **/
    public static final String UNIFIEDORDER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    /**
     * 交易查询地址
     **/
    public static final String ORDERQUERY_URL = "https://api.mch.weixin.qq.com/pay/orderquery";
    /**
     * 关闭订单
     **/
    public static final String CLOSEORDER_URL = "https://api.mch.weixin.qq.com/pay/closeorder";
    /**
     * 支付成功回调
     **/
    public static final String NOTIFY_PAY = "https://www.cheyifu2016.com:8443/wxpay/payNotify";

    /**
     * 支付成功回调月卡充值
     **/
    public static final String MONTHLY_PAY = "https://www.cheyifu2016.com:8443/wxpay/monthlyPayNotify";


    /**
     * 支付类型：APP
     **/
    public static final String TRADE_TYPE_APP = "APP";
    /**
     * 支付类型：NATIVE（扫码支付）
     **/
    public static final String TRADE_TYPE_NATIVE = "NATIVE";
    /**
     * APP端调起支付 参数中的 扩展字段
     **/
    public static final String PACKAGESTR = "Sign=WXPay";
    /**
     * 支付类型：公众号支付
     **/
    public static final String TRADE_TYPE_JSAPI = "JSAPI";
    /**
     * 证书地址：只有申请退款需要证书（双向）,其余接口不需要证书
     **/
//    @Value("${wechat.certpath}")
    public String CERT_PATH;
    /**
     * 成功标识
     **/
    public static final String SUCCESS_REQUEST = "SUCCUSS";

}
